﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraCharts;

namespace ReportingManager
{
    public class ExListView : ListView
    {
        public ExListView()
        {

        }
        public void AddItem(DevExpress.XtraCharts.ChartControl control)
        {
            this.Items.Add(new ExListItem(ExListItem.ViewTip.Bars, ExListItem.Gorunum.ikiBoyutlu, 0));
            this.Items.Add(new ExListItem(ExListItem.ViewTip.BarStacked, ExListItem.Gorunum.ikiBoyutlu, 1));
            this.Items.Add(new ExListItem(ExListItem.ViewTip.BarStackedYuzde, ExListItem.Gorunum.ikiBoyutlu, 2));
            this.Items.Add(new ExListItem(ExListItem.ViewTip.Bar3D, ExListItem.Gorunum.UcBoyutlu, 3));
            this.Items.Add(new ExListItem(ExListItem.ViewTip.Bar3DStacked, ExListItem.Gorunum.UcBoyutlu, 4));
            this.Items.Add(new ExListItem(ExListItem.ViewTip.Bar3DStackedYuzde, ExListItem.Gorunum.UcBoyutlu, 5));
            this.Items.Add(new ExListItem(ExListItem.ViewTip.ManhattanBar, ExListItem.Gorunum.ikiBoyutlu, 6));
            this.Items.Add(new ExListItem(ExListItem.ViewTip.Point, ExListItem.Gorunum.ikiBoyutlu, 7));
            this.Items.Add(new ExListItem(ExListItem.ViewTip.Line, ExListItem.Gorunum.ikiBoyutlu, 8));
            this.Items.Add(new ExListItem(ExListItem.ViewTip.StepLine, ExListItem.Gorunum.ikiBoyutlu, 9));
            this.Items.Add(new ExListItem(ExListItem.ViewTip.Line3D, ExListItem.Gorunum.UcBoyutlu, 10));
            this.Items.Add(new ExListItem(ExListItem.ViewTip.StepLine3D, ExListItem.Gorunum.UcBoyutlu, 11));
            this.Items.Add(new ExListItem(ExListItem.ViewTip.SpLine3D, ExListItem.Gorunum.UcBoyutlu, 12));
            this.Items.Add(new ExListItem(ExListItem.ViewTip.Pie, ExListItem.Gorunum.ikiBoyutlu, 13));
            this.Items.Add(new ExListItem(ExListItem.ViewTip.Doughnut, ExListItem.Gorunum.ikiBoyutlu, 14));
            this.Items.Add(new ExListItem(ExListItem.ViewTip.Pie3D, ExListItem.Gorunum.UcBoyutlu, 15));
            this.Items.Add(new ExListItem(ExListItem.ViewTip.Doughnut3D, ExListItem.Gorunum.UcBoyutlu, 16));
            this.Items.Add(new ExListItem(ExListItem.ViewTip.Area, ExListItem.Gorunum.ikiBoyutlu, 17));
            this.Items.Add(new ExListItem(ExListItem.ViewTip.AreaStacked, ExListItem.Gorunum.ikiBoyutlu, 18));
            this.Items.Add(new ExListItem(ExListItem.ViewTip.AreaStackedYuzde, ExListItem.Gorunum.ikiBoyutlu, 19));
            this.Items.Add(new ExListItem(ExListItem.ViewTip.SplineArea, ExListItem.Gorunum.ikiBoyutlu, 20));
            this.Items.Add(new ExListItem(ExListItem.ViewTip.SplineArea3DStacked, ExListItem.Gorunum.UcBoyutlu, 21));
            this.Items.Add(new ExListItem(ExListItem.ViewTip.SplineAreaStackedYuzde, ExListItem.Gorunum.ikiBoyutlu, 22));
            this.Items.Add(new ExListItem(ExListItem.ViewTip.Area3D, ExListItem.Gorunum.UcBoyutlu, 23));
            this.Items.Add(new ExListItem(ExListItem.ViewTip.Area3DStacked, ExListItem.Gorunum.UcBoyutlu, 24));
            this.Items.Add(new ExListItem(ExListItem.ViewTip.Area3DStackedYuzde, ExListItem.Gorunum.UcBoyutlu, 25));
            this.Items.Add(new ExListItem(ExListItem.ViewTip.SplineArea3D, ExListItem.Gorunum.UcBoyutlu, 26));
            this.Items.Add(new ExListItem(ExListItem.ViewTip.SplineArea3DStacked, ExListItem.Gorunum.UcBoyutlu, 27));
            this.Items.Add(new ExListItem(ExListItem.ViewTip.SplineArea3DStackedYuzde, ExListItem.Gorunum.UcBoyutlu, 28));
            this.Items.Add(new ExListItem(ExListItem.ViewTip.RadarPoint, ExListItem.Gorunum.ikiBoyutlu, 29));
            this.Items.Add(new ExListItem(ExListItem.ViewTip.RadarLine, ExListItem.Gorunum.ikiBoyutlu, 30));
            this.Items.Add(new ExListItem(ExListItem.ViewTip.RadarArea, ExListItem.Gorunum.ikiBoyutlu, 31));
            this.Items.Add(new ExListItem(ExListItem.ViewTip.RangeBar, ExListItem.Gorunum.ikiBoyutlu, 32));
            this.Items.Add(new ExListItem(ExListItem.ViewTip.SideBySideRangeBar, ExListItem.Gorunum.ikiBoyutlu, 33));
            this.Items.Add(new ExListItem(ExListItem.ViewTip.Gantt, ExListItem.Gorunum.ikiBoyutlu, 34));
            this.Items.Add(new ExListItem(ExListItem.ViewTip.SideBySideGantt, ExListItem.Gorunum.ikiBoyutlu, 35));
            this.Items.Add(new ExListItem(ExListItem.ViewTip.Stock, ExListItem.Gorunum.ikiBoyutlu, 36));
            this.Items.Add(new ExListItem(ExListItem.ViewTip.CandleStick, ExListItem.Gorunum.ikiBoyutlu, 37));
        }
    }
    public class ExListItem : ListViewItem
    {
        public enum ViewTip
        {
            Bars,
            BarStacked,
            BarStackedYuzde,
            Bar3D,
            Bar3DStacked,
            Bar3DStackedYuzde,
            ManhattanBar,
            Point,
            Line,
            StepLine,
            Spline,
            Line3D,
            StepLine3D,
            SpLine3D,
            Pie,
            Doughnut,
            Pie3D,
            Doughnut3D,
            Area,
            AreaStacked,
            AreaStackedYuzde,
            SplineArea,
            SplineAreaStacked,
            SplineAreaStackedYuzde,
            Area3D,
            Area3DStacked,
            Area3DStackedYuzde,
            SplineArea3D,
            SplineArea3DStacked,
            SplineArea3DStackedYuzde,
            RadarPoint,
            RadarLine,
            RadarArea,
            RangeBar,
            SideBySideRangeBar,
            Gantt,
            SideBySideGantt,
            Stock,
            CandleStick
        }
        public Gorunum Style { get; set; }
        public enum Gorunum
        {
            ikiBoyutlu,
            UcBoyutlu
        }
        public ViewTip Tip { get; set; }

        public DevExpress.XtraCharts.SeriesViewBase View { get; set; }
        //Testten sonra Açılacak
        //public ExListItem(ViewTip type, Gorunum style, int Index, ChartControl control)
        //{
        //    this.Tip = type;
        //    DevExpress.XtraCharts.SeriesViewBase series = null;
        //    this.Style = style;
        //    switch (type)
        //    {
        //        case ViewTip.Bars:
        //            series = new DevExpress.XtraCharts.SideBySideBarSeriesView();
        //            ((XYDiagram)control.Diagram).EnableScrolling = true;
        //            ((XYDiagram)control.Diagram).EnableZooming = true;
        //            control.SeriesTemplate.LegendPointOptions.ValueNumericOptions.Format = NumericFormat.General;
        //            control.SeriesTemplate.LegendPointOptions.ValueNumericOptions.Precision = 0;
        //            control.SeriesTemplate.LegendPointOptions.PointView = PointView.ArgumentAndValues;
        //            control.SeriesTemplate.PointOptions.ValueNumericOptions.Format = NumericFormat.General;
        //            control.SeriesTemplate.PointOptions.PointView = PointView.Values;
        //            control.SeriesTemplate.PointOptions.ValueNumericOptions.Precision = 0;
        //            break;
        //        case ViewTip.BarStacked:
        //            series = new DevExpress.XtraCharts.StackedBarSeriesView();
        //            ((XYDiagram)control.Diagram).EnableScrolling = true;
        //            ((XYDiagram)control.Diagram).EnableZooming = true;
        //            control.SeriesTemplate.LegendPointOptions.ValueNumericOptions.Format = NumericFormat.General;
        //            control.SeriesTemplate.LegendPointOptions.ValueNumericOptions.Precision = 0;
        //            control.SeriesTemplate.LegendPointOptions.PointView = PointView.ArgumentAndValues;
        //            control.SeriesTemplate.PointOptions.ValueNumericOptions.Format = NumericFormat.General;
        //            control.SeriesTemplate.PointOptions.PointView = PointView.Values;
        //            control.SeriesTemplate.PointOptions.ValueNumericOptions.Precision = 0;
        //            break;
        //        case ViewTip.BarStackedYuzde:
        //            series = new DevExpress.XtraCharts.FullStackedBarSeriesView();
        //            ((XYDiagram)control.Diagram).EnableScrolling = true;
        //            ((XYDiagram)control.Diagram).EnableZooming = true;
        //            control.SeriesTemplate.LegendPointOptions.ValueNumericOptions.Format = NumericFormat.General;
        //            control.SeriesTemplate.LegendPointOptions.ValueNumericOptions.Precision = 0;
        //            control.SeriesTemplate.LegendPointOptions.PointView = PointView.ArgumentAndValues;
        //            control.SeriesTemplate.PointOptions.ValueNumericOptions.Format = NumericFormat.General;
        //            control.SeriesTemplate.PointOptions.PointView = PointView.Values;
        //            control.SeriesTemplate.PointOptions.ValueNumericOptions.Precision = 0;
        //            break;
        //        case ViewTip.Bar3D:
        //            series = new DevExpress.XtraCharts.SideBySideBar3DSeriesView();
        //            break;
        //        case ViewTip.Bar3DStacked:
        //            series = new DevExpress.XtraCharts.StackedBar3DSeriesView();
        //            break;
        //        case ViewTip.Bar3DStackedYuzde:
        //            series = new DevExpress.XtraCharts.FullStackedBar3DSeriesView();
        //            break;
        //        case ViewTip.ManhattanBar:
        //            series = new DevExpress.XtraCharts.ManhattanBarSeriesView();
        //            break;
        //        case ViewTip.Point:
        //            series = new DevExpress.XtraCharts.PointSeriesView();
        //            ((XYDiagram)control.Diagram).EnableScrolling = true;
        //            ((XYDiagram)control.Diagram).EnableZooming = true;
        //            control.SeriesTemplate.LegendPointOptions.ValueNumericOptions.Format = NumericFormat.General;
        //            control.SeriesTemplate.LegendPointOptions.ValueNumericOptions.Precision = 0;
        //            control.SeriesTemplate.LegendPointOptions.PointView = PointView.ArgumentAndValues;
        //            control.SeriesTemplate.PointOptions.ValueNumericOptions.Format = NumericFormat.General;
        //            control.SeriesTemplate.PointOptions.PointView = PointView.Values;
        //            control.SeriesTemplate.PointOptions.ValueNumericOptions.Precision = 0;
        //            break;
        //        case ViewTip.Line:
        //            series = new DevExpress.XtraCharts.LineSeriesView();
        //            ((XYDiagram)control.Diagram).EnableScrolling = true;
        //            ((XYDiagram)control.Diagram).EnableZooming = true;
        //            control.SeriesTemplate.LegendPointOptions.ValueNumericOptions.Format = NumericFormat.General;
        //            control.SeriesTemplate.LegendPointOptions.ValueNumericOptions.Precision = 0;
        //            control.SeriesTemplate.LegendPointOptions.PointView = PointView.ArgumentAndValues;
        //            control.SeriesTemplate.PointOptions.ValueNumericOptions.Format = NumericFormat.General;
        //            control.SeriesTemplate.PointOptions.PointView = PointView.Values;
        //            control.SeriesTemplate.PointOptions.ValueNumericOptions.Precision = 0;
        //            break;
        //        case ViewTip.StepLine:
        //            series = new DevExpress.XtraCharts.StepLineSeriesView();
        //            ((XYDiagram)control.Diagram).EnableScrolling = true;
        //            ((XYDiagram)control.Diagram).EnableZooming = true;
        //            control.SeriesTemplate.LegendPointOptions.ValueNumericOptions.Format = NumericFormat.General;
        //            control.SeriesTemplate.LegendPointOptions.ValueNumericOptions.Precision = 0;
        //            control.SeriesTemplate.LegendPointOptions.PointView = PointView.ArgumentAndValues;
        //            control.SeriesTemplate.PointOptions.ValueNumericOptions.Format = NumericFormat.General;
        //            control.SeriesTemplate.PointOptions.PointView = PointView.Values;
        //            control.SeriesTemplate.PointOptions.ValueNumericOptions.Precision = 0;
        //            break;
        //        case ViewTip.Spline:
        //            series = new DevExpress.XtraCharts.SplineSeriesView();
        //            ((XYDiagram)control.Diagram).EnableScrolling = true;
        //            ((XYDiagram)control.Diagram).EnableZooming = true;
        //            control.SeriesTemplate.LegendPointOptions.ValueNumericOptions.Format = NumericFormat.General;
        //            control.SeriesTemplate.LegendPointOptions.ValueNumericOptions.Precision = 0;
        //            control.SeriesTemplate.LegendPointOptions.PointView = PointView.ArgumentAndValues;
        //            control.SeriesTemplate.PointOptions.ValueNumericOptions.Format = NumericFormat.General;
        //            control.SeriesTemplate.PointOptions.PointView = PointView.Values;
        //            control.SeriesTemplate.PointOptions.ValueNumericOptions.Precision = 0;
        //            break;
        //        case ViewTip.Line3D:
        //            series = new DevExpress.XtraCharts.Line3DSeriesView();
        //            break;
        //        case ViewTip.StepLine3D:
        //            series = new DevExpress.XtraCharts.StepLine3DSeriesView();
        //            break;
        //        case ViewTip.SpLine3D:
        //            series = new DevExpress.XtraCharts.Spline3DSeriesView();
        //            break;
        //        case ViewTip.Pie:
        //            series = new DevExpress.XtraCharts.PieSeriesView();
        //            control.SeriesTemplate.LegendPointOptions.ValueNumericOptions.Format = NumericFormat.Percent;
        //            control.SeriesTemplate.LegendPointOptions.ValueNumericOptions.Precision = 0;
        //            control.SeriesTemplate.LegendPointOptions.PointView = PointView.ArgumentAndValues;
        //            control.SeriesTemplate.PointOptions.ValueNumericOptions.Format = NumericFormat.Percent;
        //            control.SeriesTemplate.PointOptions.PointView = PointView.ArgumentAndValues;
        //            control.SeriesTemplate.PointOptions.ValueNumericOptions.Precision = 0;
        //            break;
        //        case ViewTip.Doughnut:
        //            series = new DevExpress.XtraCharts.DoughnutSeriesView();
        //            control.SeriesTemplate.LegendPointOptions.ValueNumericOptions.Format = NumericFormat.Percent;
        //            control.SeriesTemplate.LegendPointOptions.ValueNumericOptions.Precision = 0;
        //            control.SeriesTemplate.LegendPointOptions.PointView = PointView.ArgumentAndValues;
        //            control.SeriesTemplate.PointOptions.ValueNumericOptions.Format = NumericFormat.Percent;
        //            control.SeriesTemplate.PointOptions.PointView = PointView.ArgumentAndValues;
        //            control.SeriesTemplate.PointOptions.ValueNumericOptions.Precision = 0;
        //            break;
        //        case ViewTip.Pie3D:
        //            series = new DevExpress.XtraCharts.Pie3DSeriesView();
        //            break;
        //        case ViewTip.Doughnut3D:
        //            series = new DevExpress.XtraCharts.Doughnut3DSeriesView();
        //            break;
        //        case ViewTip.Area:
        //            series = new DevExpress.XtraCharts.AreaSeriesView();
        //            ((XYDiagram)control.Diagram).EnableScrolling = true;
        //            ((XYDiagram)control.Diagram).EnableZooming = true;
        //            control.SeriesTemplate.LegendPointOptions.ValueNumericOptions.Format = NumericFormat.General;
        //            control.SeriesTemplate.LegendPointOptions.ValueNumericOptions.Precision = 0;
        //            control.SeriesTemplate.LegendPointOptions.PointView = PointView.ArgumentAndValues;
        //            control.SeriesTemplate.PointOptions.ValueNumericOptions.Format = NumericFormat.General;
        //            control.SeriesTemplate.PointOptions.PointView = PointView.Values;
        //            control.SeriesTemplate.PointOptions.ValueNumericOptions.Precision = 0;
        //            break;
        //        case ViewTip.AreaStacked:
        //            series = new DevExpress.XtraCharts.StackedAreaSeriesView();
        //            ((XYDiagram)control.Diagram).EnableScrolling = true;
        //            ((XYDiagram)control.Diagram).EnableZooming = true;
        //            control.SeriesTemplate.LegendPointOptions.ValueNumericOptions.Format = NumericFormat.General;
        //            control.SeriesTemplate.LegendPointOptions.ValueNumericOptions.Precision = 0;
        //            control.SeriesTemplate.LegendPointOptions.PointView = PointView.ArgumentAndValues;
        //            control.SeriesTemplate.PointOptions.ValueNumericOptions.Format = NumericFormat.General;
        //            control.SeriesTemplate.PointOptions.PointView = PointView.Values;
        //            control.SeriesTemplate.PointOptions.ValueNumericOptions.Precision = 0;
        //            break;
        //        case ViewTip.AreaStackedYuzde:
        //            series = new DevExpress.XtraCharts.FullStackedAreaSeriesView();
        //            ((XYDiagram)control.Diagram).EnableScrolling = true;
        //            ((XYDiagram)control.Diagram).EnableZooming = true;
        //            control.SeriesTemplate.LegendPointOptions.ValueNumericOptions.Format = NumericFormat.General;
        //            control.SeriesTemplate.LegendPointOptions.ValueNumericOptions.Precision = 0;
        //            control.SeriesTemplate.LegendPointOptions.PointView = PointView.ArgumentAndValues;
        //            control.SeriesTemplate.PointOptions.ValueNumericOptions.Format = NumericFormat.General;
        //            control.SeriesTemplate.PointOptions.PointView = PointView.Values;
        //            control.SeriesTemplate.PointOptions.ValueNumericOptions.Precision = 0;
        //            break;
        //        case ViewTip.SplineArea:
        //            series = new DevExpress.XtraCharts.SplineAreaSeriesView();
        //            ((XYDiagram)control.Diagram).EnableScrolling = true;
        //            ((XYDiagram)control.Diagram).EnableZooming = true;
        //            control.SeriesTemplate.LegendPointOptions.ValueNumericOptions.Format = NumericFormat.General;
        //            control.SeriesTemplate.LegendPointOptions.ValueNumericOptions.Precision = 0;
        //            control.SeriesTemplate.LegendPointOptions.PointView = PointView.ArgumentAndValues;
        //            control.SeriesTemplate.PointOptions.ValueNumericOptions.Format = NumericFormat.General;
        //            control.SeriesTemplate.PointOptions.PointView = PointView.Values;
        //            control.SeriesTemplate.PointOptions.ValueNumericOptions.Precision = 0;
        //            break;
        //        case ViewTip.SplineAreaStacked:
        //            series = new DevExpress.XtraCharts.StackedSplineAreaSeriesView();
        //            ((XYDiagram)control.Diagram).EnableScrolling = true;
        //            ((XYDiagram)control.Diagram).EnableZooming = true;
        //            control.SeriesTemplate.LegendPointOptions.ValueNumericOptions.Format = NumericFormat.General;
        //            control.SeriesTemplate.LegendPointOptions.ValueNumericOptions.Precision = 0;
        //            control.SeriesTemplate.LegendPointOptions.PointView = PointView.ArgumentAndValues;
        //            control.SeriesTemplate.PointOptions.ValueNumericOptions.Format = NumericFormat.General;
        //            control.SeriesTemplate.PointOptions.PointView = PointView.Values;
        //            control.SeriesTemplate.PointOptions.ValueNumericOptions.Precision = 0;
        //            break;
        //        case ViewTip.SplineAreaStackedYuzde:
        //            series = new DevExpress.XtraCharts.FullStackedSplineAreaSeriesView();
        //            ((XYDiagram)control.Diagram).EnableScrolling = true;
        //            ((XYDiagram)control.Diagram).EnableZooming = true;
        //            control.SeriesTemplate.LegendPointOptions.ValueNumericOptions.Format = NumericFormat.General;
        //            control.SeriesTemplate.LegendPointOptions.ValueNumericOptions.Precision = 0;
        //            control.SeriesTemplate.LegendPointOptions.PointView = PointView.ArgumentAndValues;
        //            control.SeriesTemplate.PointOptions.ValueNumericOptions.Format = NumericFormat.General;
        //            control.SeriesTemplate.PointOptions.PointView = PointView.Values;
        //            control.SeriesTemplate.PointOptions.ValueNumericOptions.Precision = 0;
        //            break;
        //        case ViewTip.Area3D:
        //            series = new DevExpress.XtraCharts.Area3DSeriesView();
        //            break;
        //        case ViewTip.Area3DStacked:
        //            series = new DevExpress.XtraCharts.StackedArea3DSeriesView();
        //            break;
        //        case ViewTip.Area3DStackedYuzde:
        //            series = new DevExpress.XtraCharts.FullStackedArea3DSeriesView();
        //            break;
        //        case ViewTip.SplineArea3D:
        //            series = new DevExpress.XtraCharts.SplineArea3DSeriesView();
        //            break;
        //        case ViewTip.SplineArea3DStacked:
        //            series = new DevExpress.XtraCharts.StackedSplineArea3DSeriesView();
        //            break;
        //        case ViewTip.SplineArea3DStackedYuzde:
        //            series = new DevExpress.XtraCharts.FullStackedSplineArea3DSeriesView();
        //            break;
        //        case ViewTip.RadarPoint:
        //            series = new DevExpress.XtraCharts.RadarPointSeriesView();
        //            control.SeriesTemplate.LegendPointOptions.ValueNumericOptions.Format = NumericFormat.General;
        //            control.SeriesTemplate.LegendPointOptions.ValueNumericOptions.Precision = 0;
        //            control.SeriesTemplate.LegendPointOptions.PointView = PointView.ArgumentAndValues;
        //            control.SeriesTemplate.PointOptions.ValueNumericOptions.Format = NumericFormat.General;
        //            control.SeriesTemplate.PointOptions.PointView = PointView.Values;
        //            control.SeriesTemplate.PointOptions.ValueNumericOptions.Precision = 0;
        //            break;
        //        case ViewTip.RadarLine:
        //            series = new DevExpress.XtraCharts.RadarLineSeriesView();
        //            series = new DevExpress.XtraCharts.DoughnutSeriesView();
        //            control.SeriesTemplate.LegendPointOptions.ValueNumericOptions.Format = NumericFormat.General;
        //            control.SeriesTemplate.LegendPointOptions.ValueNumericOptions.Precision = 0;
        //            control.SeriesTemplate.LegendPointOptions.PointView = PointView.ArgumentAndValues;
        //            control.SeriesTemplate.PointOptions.ValueNumericOptions.Format = NumericFormat.General;
        //            control.SeriesTemplate.PointOptions.PointView = PointView.Values;
        //            control.SeriesTemplate.PointOptions.ValueNumericOptions.Precision = 0;
        //            break;
        //        case ViewTip.RadarArea:
        //            series = new DevExpress.XtraCharts.RadarAreaSeriesView();
        //            control.SeriesTemplate.LegendPointOptions.ValueNumericOptions.Format = NumericFormat.General;
        //            control.SeriesTemplate.LegendPointOptions.ValueNumericOptions.Precision = 0;
        //            control.SeriesTemplate.LegendPointOptions.PointView = PointView.ArgumentAndValues;
        //            control.SeriesTemplate.PointOptions.ValueNumericOptions.Format = NumericFormat.General;
        //            control.SeriesTemplate.PointOptions.PointView = PointView.Values;
        //            control.SeriesTemplate.PointOptions.ValueNumericOptions.Precision = 0;
        //            break;
        //        case ViewTip.RangeBar:
        //            series = new DevExpress.XtraCharts.OverlappedRangeBarSeriesView();
        //            ((XYDiagram)control.Diagram).EnableScrolling = true;
        //            ((XYDiagram)control.Diagram).EnableZooming = true;
        //            control.SeriesTemplate.LegendPointOptions.ValueNumericOptions.Format = NumericFormat.General;
        //            control.SeriesTemplate.LegendPointOptions.ValueNumericOptions.Precision = 0;
        //            control.SeriesTemplate.LegendPointOptions.PointView = PointView.ArgumentAndValues;
        //            control.SeriesTemplate.PointOptions.ValueNumericOptions.Format = NumericFormat.General;
        //            control.SeriesTemplate.PointOptions.PointView = PointView.Values;
        //            control.SeriesTemplate.PointOptions.ValueNumericOptions.Precision = 0;
        //            break;
        //        case ViewTip.SideBySideRangeBar:
        //            series = new DevExpress.XtraCharts.SideBySideRangeBarSeriesView();
        //            control.SeriesTemplate.LegendPointOptions.ValueNumericOptions.Format = NumericFormat.General;
        //            control.SeriesTemplate.LegendPointOptions.ValueNumericOptions.Precision = 0;
        //            control.SeriesTemplate.LegendPointOptions.PointView = PointView.ArgumentAndValues;
        //            control.SeriesTemplate.PointOptions.ValueNumericOptions.Format = NumericFormat.General;
        //            control.SeriesTemplate.PointOptions.PointView = PointView.Values;
        //            control.SeriesTemplate.PointOptions.ValueNumericOptions.Precision = 0;
        //            break;
        //        case ViewTip.Gantt:
        //            series = new DevExpress.XtraCharts.OverlappedGanttSeriesView();
        //            ((XYDiagram)control.Diagram).EnableScrolling = true;
        //            ((XYDiagram)control.Diagram).EnableZooming = true;
        //            control.SeriesTemplate.LegendPointOptions.ValueNumericOptions.Format = NumericFormat.General;
        //            control.SeriesTemplate.LegendPointOptions.ValueNumericOptions.Precision = 0;
        //            control.SeriesTemplate.LegendPointOptions.PointView = PointView.ArgumentAndValues;
        //            control.SeriesTemplate.PointOptions.ValueNumericOptions.Format = NumericFormat.General;
        //            control.SeriesTemplate.PointOptions.PointView = PointView.Values;
        //            control.SeriesTemplate.PointOptions.ValueNumericOptions.Precision = 0;
        //            break;
        //        case ViewTip.SideBySideGantt:
        //            series = new DevExpress.XtraCharts.SideBySideGanttSeriesView();
        //            control.SeriesTemplate.LegendPointOptions.ValueNumericOptions.Format = NumericFormat.General;
        //            control.SeriesTemplate.LegendPointOptions.ValueNumericOptions.Precision = 0;
        //            control.SeriesTemplate.LegendPointOptions.PointView = PointView.ArgumentAndValues;
        //            control.SeriesTemplate.PointOptions.ValueNumericOptions.Format = NumericFormat.General;
        //            control.SeriesTemplate.PointOptions.PointView = PointView.Values;
        //            control.SeriesTemplate.PointOptions.ValueNumericOptions.Precision = 0;
        //            break;
        //        case ViewTip.Stock:
        //            series = new DevExpress.XtraCharts.StockSeriesView();
        //            control.SeriesTemplate.LegendPointOptions.ValueNumericOptions.Format = NumericFormat.General;
        //            control.SeriesTemplate.LegendPointOptions.ValueNumericOptions.Precision = 0;
        //            control.SeriesTemplate.LegendPointOptions.PointView = PointView.ArgumentAndValues;
        //            control.SeriesTemplate.PointOptions.ValueNumericOptions.Format = NumericFormat.General;
        //            control.SeriesTemplate.PointOptions.PointView = PointView.Values;
        //            control.SeriesTemplate.PointOptions.ValueNumericOptions.Precision = 0;
        //            break;
        //        case ViewTip.CandleStick:
        //            series = new DevExpress.XtraCharts.CandleStickSeriesView();
        //            ((XYDiagram)control.Diagram).EnableScrolling = true;
        //            ((XYDiagram)control.Diagram).EnableZooming = true;
        //            control.SeriesTemplate.LegendPointOptions.ValueNumericOptions.Format = NumericFormat.General;
        //            control.SeriesTemplate.LegendPointOptions.ValueNumericOptions.Precision = 0;
        //            control.SeriesTemplate.LegendPointOptions.PointView = PointView.ArgumentAndValues;
        //            control.SeriesTemplate.PointOptions.ValueNumericOptions.Format = NumericFormat.General;
        //            control.SeriesTemplate.PointOptions.PointView = PointView.Values;
        //            control.SeriesTemplate.PointOptions.ValueNumericOptions.Precision = 0;
        //            break;
        //        default:
        //            break;
        //    }
        //    this.ImageIndex = Index;
        //    this.View = series;
        //}

        //Test Edilcek

        public ExListItem(ViewTip type, Gorunum style, int Index)
        {
            this.Tip = type;
            this.Style = style;
            this.ImageIndex = Index;
        }
    }

}
